package com.cgbl.cg.adapter

import android.view.View
import android.widget.TextView
import androidx.recyclerview.widget.LinearLayoutManager
import androidx.recyclerview.widget.RecyclerView
import androidx.recyclerview.widget.RecyclerView.Recycler
import com.cgbl.cg.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder

class CareerPathAdapter : BaseQuickAdapter<String, BaseViewHolder>(R.layout.app_item_career_path) {

    override fun convert(holder: BaseViewHolder, item: String) {
        val mAdapter = CareerPathCourseAdapter()
        val showMore = holder.getView<TextView>(R.id.tv_show_more)
        val recyclerView = holder.getView<RecyclerView>(R.id.recyclerView)
        recyclerView.apply {
            layoutManager = LinearLayoutManager(context)
            adapter = mAdapter
        }
        mAdapter.setNewInstance(mutableListOf("", ""))
    }

}